package com.xiaoge.system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xiaoge.response.Result;
import com.xiaoge.system.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoge
 * @since 2021-02-02
 */
public interface DepartmentService extends IService<Department> {

    Department findDeptById(Long id);

    List<Department> findDeptAndCount();

    List<Department> getDeptAndCount(QueryWrapper<Department> queryWrapper);

    Result addDept(Department department);

    Result updateDept(Department department);

    Result deleteDept(Long id);

}
